From d193b03c81f23315fdde4c80280be21b68c70453 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 27 Mar 2011 17:09:26 +0000 Subject: [PATCH] Swap 2 "and" for "&&" --- includes/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/User.php b/includes/User.php index 8cf872d7ff..996a02c92a 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1476,8 +1476,8 @@ class User { * @return Int The user's ID; 0 if the user is anonymous or nonexistent */ function getId() { - if( $this->mId === null and $this->mName !== null - and User::isIP( $this->mName ) ) { + if( $this->mId === null && $this->mName !== null + && User::isIP( $this->mName ) ) { // Special case, we know the user is anonymous return 0; } elseif( $this->mId === null ) { -- 2.20.1